package com.mis.pos.entity;

import com.mis.pos.base.entity.BaseEntity;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Description 支付实体
 * @Author yuxiang
 * @CreatedDate 2019/11/23 19:37
 */
@Entity
@Table(name = "pay")
@Data
public class PayEntity extends BaseEntity implements Serializable {

    /**
     * 支付方式
     */
    private String way;

    /**
     * 支付订单号
     */
    private Long saleId;


    /**
     * 账户
     */
    private String account;

    public String getWay() {
        return way;
    }

    public void setWay(String way) {
        this.way = way;
    }

    public Long getSaleId() {
        return saleId;
    }

    public void setSaleId(Long saleId) {
        this.saleId = saleId;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public PayEntity(String way, Long saleId, String account) {
        this.way = way;
        this.saleId = saleId;
        this.account = account;
    }

    public PayEntity() {
    }
}
